{include file="rootbase/head"}

<div class="">
    <div class="page-title">
        <div class="title_left">
            <h3>评委信息</h3>
        </div>
    </div>
    <div class="clearfix"></div>

    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="x_panel">
                <div class="x_content">
                    <form class="" action="http://www.tp5.com/vote/root/doeditpw?id={$data['jid']}" enctype="multipart/form-data" method="post" novalidate="">
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">评委账号:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="id" value="{$data['jid']}" disabled="disabled">
                            </div>
                        </div>   
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">头像:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <img src="/static/vote/{$data.jpic}" alt="大赛封面" width="80px" height="80px">
                                <input type="file" name="pic">
                                <input type="text" name="oldpic" value="{$data.jpic}" style="display: none;">
                            </div>
                        </div>  
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">评委名:<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="name" value="{$data['jname']}" required="required">
                            </div>
                        </div>    
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">电话<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6">
                                <input class="form-control" data-validate-length-range="6" data-validate-words="2" name="tel" value="{$data['tel']}" required="required">
                            </div>
                        </div>
                        <div class="field item form-group">
                            <label class="col-form-label col-md-3 col-sm-3  label-align">选择赛事</label>
                            <select name="sid">
                                {volist name='race' id='race'}
                                        {if condition="$race.rid eq $data.sid"}
                                            <!-- 如果article表中的cid与category表中的id值相同则默认选中该id的值 -->
                                            <option value="{$race.rid}" selected>{$race.rname}</option>
                                        {else /} 
                                            <!-- 如果不相等则不选中 -->
                                            <option value="{$race.rid}">{$race.rname}</option>
                                        {/if}
                                      
                                {/volist}
                            </select>
                        </div>
                        <div class="ln_solid">
                            <div class="form-group">
                                <div class="col-md-6 offset-md-3">
                                    <button type="submit" class="btn btn-primary">修改</button>
                                    <button type="reset" class="btn btn-success">重置</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{include file="rootbase/foot"}